package cn.hl.hm.vo;

import cn.hl.hm.entity.RechargeRecoardOffline;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by xianghan on 18/1/8.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class RechargeRecoardOfflineVo implements Serializable {
    @JsonIgnore
    private Integer id;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date createTime;
    private String orderCode;

    private String rechargeCode;
    private String userPhone;
    @JsonIgnore
    private Integer roadFeeCollectorId;
    private String collectorName;
    private String plateNumber;
    private BigDecimal amount;
    private Integer payType;
    private Byte chargeStatus;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getRechargeCode() {
        return rechargeCode;
    }

    public void setRechargeCode(String rechargeCode) {
        this.rechargeCode = rechargeCode;
    }
    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getCollectorName() {
        return collectorName;
    }

    public void setCollectorName(String collectorName) {
        this.collectorName = collectorName;
    }

    public String getPlateNumber() {
        return plateNumber;
    }

    public void setPlateNumber(String plateNumber) {
        this.plateNumber = plateNumber;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public Byte getChargeStatus() {
        return chargeStatus;
    }

    public void setChargeStatus(Byte chargeStatus) {
        this.chargeStatus = chargeStatus;
    }

    public Integer getRoadFeeCollectorId() {
        return roadFeeCollectorId;
    }

    public void setRoadFeeCollectorId(Integer roadFeeCollectorId) {
        this.roadFeeCollectorId = roadFeeCollectorId;
    }

    public RechargeRecoardOfflineVo(RechargeRecoardOffline rechargeRecoardOffline) {
        this.id = rechargeRecoardOffline.getId();
        this.createTime = rechargeRecoardOffline.getCreateTime();
        this.orderCode = rechargeRecoardOffline.getOrderCode();
        this.rechargeCode=rechargeRecoardOffline.getRechargeCode();
        this.userPhone = rechargeRecoardOffline.getUserPhone();
        this.roadFeeCollectorId = rechargeRecoardOffline.getRoadFeeCollectorId();
        this.plateNumber = rechargeRecoardOffline.getPlateNumber();
        this.amount = rechargeRecoardOffline.getAmount();
        this.payType = rechargeRecoardOffline.getPayType();
        this.chargeStatus = rechargeRecoardOffline.getChargeStatus();
    }
}
